import request from "@/utils/request";

// 查询护理计划列表
export function listNursingPlan(query) {
  return request({
    url: "/nursing/nursingPlan/list",
    method: "get",
    params: query,
  });
}

// 查询护理计划详细
export function getNursingPlan(id) {
  return request({
    url: "/nursing/nursingPlan/" + id,
    method: "get",
  });
}

// 新增护理计划
export function addNursingPlan(data) {
  return request({
    url: "/nursing/nursingPlan",
    method: "post",
    data: data,
  });
}

// 修改护理计划
export function updateNursingPlan(data) {
  return request({
    url: "/nursing/nursingPlan",
    method: "put",
    data: data,
  });
}

// 删除护理计划
export function delNursingPlan(id) {
  return request({
    url: "/nursing/nursingPlan/" + id,
    method: "delete",
  });
}
export function listAll() {
  return request({
    url: "/nursing/nursingPlan/all",
    method: "get",
  });
}
